/*
 * Dust.h
 *
 *  Created on: Jul 13, 2009
 *      Author: scott
 */

#ifndef DUST_H_
#define DUST_H_

#include "World.h"
#include "MeshObject.h"

class Dust: public MeshObject {
private:
	dBodyID body;
	dGeomID box;
	World * world;
	int type;
public:
	static irr::core::list<Dust*> dust;
    dBodyID getBody() const
    {
        return body;
    }

    Dust(World * world, SceneGraphNode * parent = NULL, const char * fileName = NULL,
			bool ownsChildren = false);
	virtual ~Dust();

	virtual void update();

	void reverseUpdate();
};

#endif /* DUST_H_ */
